#ifndef RADIALRAINBOW_H
#define RADIALRAINBOW_H

#include "RGBEffect.h"

class RadialRainbow : public RGBEffect
{

public:
    RadialRainbow();
    ~RadialRainbow();

    //EFFECT_REGISTERER(ClassName(), CAT_RAINBOW, [](){return new RadialRainbow;});

    static std::string const ClassName() {return "RadialRainbow";}
    void StepEffect(ControllerZone* const controller_zone) override;

//private slots:
//    void on_cx_valueChanged(int);
//    void on_cy_valueChanged(int);
//    void on_shape_currentIndexChanged(int);

private:
    double progress = 0.f;
    RGBColor GetColor(unsigned int, unsigned int, double, double, bool);
    unsigned int cx_shift = 50;
    unsigned int cy_shift = 50;
    unsigned int shape = 0;
};

#endif // RADIALRAINBOW_H
